#if _MSC_VER // this is defined when compiling with Visual Studio
#define EXPORT __declspec(dllexport) // Visual Studio needs annotating exported functions with this
#else
#define EXPORT // XCode does not need annotating exported functions, so define is empty
#endif

#pragma once
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "cameralibrary.h"

extern "C"
{
EXPORT void tirSetupCamera(void);
EXPORT void tirShutdownCamera(void);
EXPORT bool tirIsCameraInitialized(void);
EXPORT void tirStartCamera(int);
EXPORT void tirStopCamera(void);
EXPORT bool tirIsCameraRunning(void);
EXPORT void tirRecenter(void);
EXPORT void tirGetMatrix(float[], int);
EXPORT void tirReset(void);
void tirSetCameraData(int);
void tirResetIdentity(float[]);
float degToRad(float);
void quatCreateFromAxisAngle(float[], int[], float);
void quatMultiply(float[], float[]);
void quatToMat4(float[], float[]);
void updateBuffer(double*, double, double*, double, double*, double);
void smoothed(double*, double*, double*, double*, double*, double*);
}